package com.rzl.expense.expense.service.twr.impl;

import java.util.List;
import com.rzl.expense.common.utils.DateUtils;
import com.rzl.expense.expense.domain.twr.TwrHighRoom;
import com.rzl.expense.expense.mapper.twr.TwrHighRoomMapper;
import com.rzl.expense.expense.service.twr.ITwrHighRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 铁塔-高价格机房占比分析Service业务层处理
 * 
 * @author expense
 * @date 2024-12-01
 */
@Service
public class TwrHighRoomServiceImpl implements ITwrHighRoomService
{
    @Autowired
    private TwrHighRoomMapper twrHighRoomMapper;

    /**
     * 查询铁塔-高价格机房占比分析
     * 
     * @param staDate 铁塔-高价格机房占比分析主键
     * @return 铁塔-高价格机房占比分析
     */
    @Override
    public TwrHighRoom selectTwrHighRoomByStaDate(String staDate)
    {
        return twrHighRoomMapper.selectTwrHighRoomByStaDate(staDate);
    }

    /**
     * 查询铁塔-高价格机房占比分析列表
     * 
     * @param twrHighRoom 铁塔-高价格机房占比分析
     * @return 铁塔-高价格机房占比分析
     */
    @Override
    public List<TwrHighRoom> selectTwrHighRoomList(TwrHighRoom twrHighRoom)
    {
        return twrHighRoomMapper.selectTwrHighRoomList(twrHighRoom);
    }

    /**
     * 新增铁塔-高价格机房占比分析
     * 
     * @param twrHighRoom 铁塔-高价格机房占比分析
     * @return 结果
     */
    @Override
    public int insertTwrHighRoom(TwrHighRoom twrHighRoom)
    {
        twrHighRoom.setCreateTime(DateUtils.getNowDate());
        return twrHighRoomMapper.insertTwrHighRoom(twrHighRoom);
    }

    /**
     * 修改铁塔-高价格机房占比分析
     * 
     * @param twrHighRoom 铁塔-高价格机房占比分析
     * @return 结果
     */
    @Override
    public int updateTwrHighRoom(TwrHighRoom twrHighRoom)
    {
        return twrHighRoomMapper.updateTwrHighRoom(twrHighRoom);
    }

    /**
     * 批量删除铁塔-高价格机房占比分析
     * 
     * @param staDates 需要删除的铁塔-高价格机房占比分析主键
     * @return 结果
     */
    @Override
    public int deleteTwrHighRoomByStaDates(String[] staDates)
    {
        return twrHighRoomMapper.deleteTwrHighRoomByStaDates(staDates);
    }

    /**
     * 删除铁塔-高价格机房占比分析信息
     * 
     * @param staDate 铁塔-高价格机房占比分析主键
     * @return 结果
     */
    @Override
    public int deleteTwrHighRoomByStaDate(String staDate)
    {
        return twrHighRoomMapper.deleteTwrHighRoomByStaDate(staDate);
    }




    @Override
    public void batchTwrHighRoom(List<TwrHighRoom> list)
    {

         twrHighRoomMapper.batchTwrHighRoom(list);
    }


}
